package org.csmz.xg2333.Example131415;

public class Example14 {
    public static void main(String[] args){
        //向下
        Animal animal = new Dog();
        //向上
        Dog dog = (Dog) animal;
        animal.print();
        dog.print2();
    }
}
